/**
 * 地图标记点数组
 * 参数说明，参考：https://developers.weixin.qq.com/miniprogram/dev/component/map.html
 * author：余强
 * email：yq.yyds@foxmail.com
 * 日期：2024年10月26日
 */
const lableAll =
    [
        {
        id: 1,
        joinCluster: true,
        latitude: 31.492385,
        longitude: 104.686100,
        name: 'Ibeacon02',
        // label:{},
        width: 25,
        height: 25,
        label: {
            content: "点位1",
            bgColor: "#ffffff",
            color: "#0597ff",
            padding: 3,
            display: "ALWAYS",
            borderRadius: 3,
            anchorX: -11.8,
            anchorY: -50,
            textAlign: 'center'
        },
        iconPath: '/icon/dy.png',
    }, {
        id: 2,
        joinCluster: true,
        latitude: 31.490715,
        longitude: 104.685080,
        name: 'Ibeacon02',
        // label:{},
        width: 25,
        height: 25,
        label: {
            content: "点位2",
            bgColor: "#ffffff",
            color: "#0597ff",
            padding: 3,
            display: "ALWAYS",
            borderRadius: 3,
            anchorX: -11.8,
            anchorY: -50,
            textAlign: 'center'
        },
        iconPath: '/icon/dy.png',
    }, {
        id: 3,
        joinCluster: true,
        latitude: 31.489501,
        longitude: 104.685999,
        name: 'Ibeacon02',
        // label:{},
        width: 25,
        height: 25,
        label: {
            content: "点位3",
            bgColor: "#ffffff",
            color: "#0597ff",
            padding: 3,
            display: "ALWAYS",
            borderRadius: 3,
            anchorX: -11.8,
            anchorY: -50,
            textAlign: 'center'
        },

        iconPath: '/icon/dy.png',
    }, {
        id: 4,
        joinCluster: true,
        latitude: 31.488699,
        longitude: 104.687900,
        name: 'Ibeacon02',
        // label:{},
        width: 25,
        height: 25,
        label: {
            content: "点位4",
            bgColor: "#ffffff",
            color: "#0597ff",
            padding: 3,
            display: "ALWAYS",
            borderRadius: 3,
            anchorX: -11.8,
            anchorY: -50,
            textAlign: 'center'
        },
        iconPath: '/icon/dy.png',
    }, {
        id: 5,
        joinCluster: true,
        latitude: 31.489455,
        longitude: 104.688450,
        name: 'Ibeacon02',
        // label:{},
        width: 25,
        height: 25,
        label: {
            content: "点位5",
            bgColor: "#ffffff",
            color: "#0597ff",
            padding: 3,
            display: "ALWAYS",
            borderRadius: 3,
            anchorX: -11.8,
            anchorY: -50,
            textAlign: 'center'
        },

        iconPath: '/icon/dy.png',
    },
        {
        id: 6,
        joinCluster: true,
        latitude: 31.490900,
        longitude: 104.68850,
        name: 'Ibeacon02',
        // label:{},
        width: 25,
        height: 25,
        label: {
            content: "点位6",
            bgColor: "#ffffff",
            color: "#0597ff",
            padding: 3,
            display: "ALWAYS",
            borderRadius: 3,
            anchorX: -11.8,
            anchorY: -50,
            textAlign: 'center'
        },
        iconPath: '/icon/dy.png',
    },
        {
        id: 7,
        joinCluster: true,
        latitude: 31.492030,
        longitude: 104.688460,
        name: 'Ibeacon02',
        // label:{},
        width: 25,
        height: 25,
        label: {
            content: "点位7",
            bgColor: "#ffffff",
            color: "#0597ff",
            padding: 3,
            display: "ALWAYS",
            borderRadius: 3,
            anchorX: -11.8,
            anchorY: -50,
            textAlign: 'center'
        },
        iconPath: '/icon/dy.png',
    },




        {
            id: 8,
            joinCluster: true,
            latitude: 31.472019416132454,
            longitude: 104.69658628106114,
            name: 'Ibeacon02',
            // label:{},
            width: 25,
            height: 25,
            label: {
                content: "凤仪亭",
                bgColor: "#ffffff",
                color: "#0597ff",
                padding: 3,
                display: "ALWAYS",
                borderRadius: 3,
                anchorX: -11.8,
                anchorY: -50,
                textAlign: 'center'
            },

            iconPath: '/icon/dy.png',
        },
        {
            id: 9,
            joinCluster: true,
            latitude: 31.47311976607527,
            longitude: 104.69666540622711,
            name: 'Ibeacon02',
            // label:{},
            width: 25,
            height: 25,
            label: {
                content: "连环计",
                bgColor: "#ffffff",
                color: "#0597ff",
                padding: 3,
                display: "ALWAYS",
                borderRadius: 3,
                anchorX: -11.8,
                anchorY: -50,
                textAlign: 'center'
            },

            iconPath: '/icon/dy.png',
        },
        {
            id: 10,
            joinCluster: true,
            latitude: 31.474168632304856,
            longitude: 104.69703018665312,
            name: 'Ibeacon02',
            // label:{},
            width: 25,
            height: 25,
            label: {
                content: "锁战船",
                bgColor: "#ffffff",
                color: "#0597ff",
                padding: 3,
                display: "ALWAYS",
                borderRadius: 3,
                anchorX: -11.8,
                anchorY: -50,
                textAlign: 'center'
            },

            iconPath: '/icon/dy.png',
        },
        {
            id: 11,
            joinCluster: true,
            latitude: 31.474161769532405,
            longitude: 104.69788044691086,
            name: 'Ibeacon02',
            // label:{},
            width: 25,
            height: 25,
            label: {
                content: "三江口",
                bgColor: "#ffffff",
                color: "#0597ff",
                padding: 3,
                display: "ALWAYS",
                borderRadius: 3,
                anchorX: -11.8,
                anchorY: -50,
                textAlign: 'center'
            },
            iconPath: '/icon/dy.png',
        },
        {
            id: 12,
            joinCluster: true,
            latitude: 31.473029405184956,
            longitude: 104.69933554530141,
            name: 'Ibeacon02',
            // label:{},
            width: 25,
            height: 25,
            label: {
                content: "群英会",
                bgColor: "#ffffff",
                color: "#0597ff",
                padding: 3,
                display: "ALWAYS",
                borderRadius: 3,
                anchorX: -11.8,
                anchorY: -50,
                textAlign: 'center'
            },
            iconPath: '/icon/dy.png',
        },
        {
            id: 13,
            joinCluster: true,
            latitude: 31.471879869789223,
            longitude: 104.69983980059621,
            name: 'Ibeacon02',
            // label:{},
            width: 25,
            height: 25,
            label: {
                content: "定军山",
                bgColor: "#ffffff",
                color: "#0597ff",
                padding: 3,
                display: "ALWAYS",
                borderRadius: 3,
                anchorX: -11.8,
                anchorY: -50,
                textAlign: 'center'
            },
            iconPath: '/icon/dy.png',
        },
        {
            id: 14,
            joinCluster: true,
            latitude: 31.470876731346475,
            longitude: 104.69948977231977,
            name: 'Ibeacon02',
            // label:{},
            width: 25,
            height: 25,
            label: {
                content: "五丈原",
                bgColor: "#ffffff",
                color: "#0597ff",
                padding: 3,
                display: "ALWAYS",
                borderRadius: 3,
                anchorX: -11.8,
                anchorY: -50,
                textAlign: 'center'
            },
            iconPath: '/icon/dy.png',
        },
        {
            id: 15,
            joinCluster: true,
            latitude: 31.47105516952945,
            longitude: 104.6991357207298,
            name: 'Ibeacon02',
            // label:{},
            width: 25,
            height: 25,
            label: {
                content: "承露盘",
                bgColor: "#ffffff",
                color: "#0597ff",
                padding: 3,
                display: "ALWAYS",
                borderRadius: 3,
                anchorX: -11.8,
                anchorY: -50,
                textAlign: 'center'
            },
            iconPath: '/icon/dy.png',
        },
        {
            id: 16,
            joinCluster: true,
            latitude: 31.470869868332656,
            longitude: 104.69845712184902,
            name: 'Ibeacon02',
            // label:{},
            width: 25,
            height: 25,
            label: {
                content: "白帝城",
                bgColor: "#ffffff",
                color: "#0597ff",
                padding: 3,
                display: "ALWAYS",
                borderRadius: 3,
                anchorX: -11.8,
                anchorY: -50,
                textAlign: 'center'
            },
            iconPath: '/icon/dy.png',
        },
    ]


function getAllLable() {
    return lableAll;
}

function getRandomCheckpoint() {
    const randomIndex = Math.floor(Math.random() * lableAll.length);
    return lableAll[randomIndex];
}

module.exports = {
    getAllLable: getAllLable
}
